﻿using System;
using System.Threading;

class MathExpression
{
    static void Main()
    {
        //C# Fundamentals 2011/2012 Part 1 - Test Exam

        Thread.CurrentThread.CurrentCulture = System.Globalization.CultureInfo.InvariantCulture;
        double n = double.Parse(Console.ReadLine());
        double m = double.Parse(Console.ReadLine());
        double p = double.Parse(Console.ReadLine());

        double angle = (int)(m % 180); // Mod operator

        double sin = Math.Sin(angle);

        double resultAbove = (n * n) + 1 / (m * p) + 1337;
        double resultBelow = n - (128.523123123 * p);
        
        double finalResult = (resultAbove / resultBelow) + sin;

        Console.WriteLine("{0:F6}",finalResult);
    }
}

